from ev import Command




class CmdDirections(Command):
    """
    This is the template class for all direction commands.

    """
    locks = "cmd:all()"
    priority = 0


    def func(self):
        "implements the command."
        self.caller.msg("Non puoi andare in quella direzione.")

class CmdDown(CmdDirections):
    """
    down

    Usage:
      down

    Go down.

    """
    key = "down"
    aliases = ["d", "giu"]

class CmdEast(CmdDirections):
    """
    east

    Usage:
      east

    Go east."west"

    """
    key = "east"
    aliases = [ "e", "est"]

class CmdNorth(CmdDirections):
    """
    north

    Usage:
      north

    Go north.

    """
    key = "north"
    aliases = ["n", "nord"]

class CmdSouth(CmdDirections):
    """
    south

    Usage:
      south

    Go south.

    """
    key = "south"
    aliases = ["s", "sud"]

class CmdWest(CmdDirections):
    """
    west

    Usage:
      west

    Go west.

    """
    key = "west"
    aliases = ["w", "ovest", "o"]

class CmdUp(CmdDirections):
    """
    up

    Usage:
      up

    Go up.

    """
    key = "up"
    aliases = ["u", "su"]

